package com.lagou.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    public <E> List<E> selectList(String statementId,Object... args) throws Exception;

    public <E> E selectOne(String statementId,Object... args) throws Exception;

    public int update(String statementId,Object... args) throws Exception;

    //为dao生成代理类
    public <T> T getMapper(Class<?> clazz);

}
